#include "LampDlg.h"
#include "ui_LampDlg.h"

LampDlg::LampDlg(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::LampDlg)
{
    ui->setupUi(this);
    setAttribute(Qt::WA_DeleteOnClose);

    connect(ui->lampColorForm,
            SIGNAL(colorChanged(const QVector3D&)),
            SIGNAL(lampColorChanged(const QVector3D&)));
}

LampDlg::~LampDlg()
{
    delete ui;
}

void LampDlg::setLampColor(const QVector3D &color)
{
    ui->lampColorForm->initColor(color);
}
